export interface general {
  code: number
  message: string
  ok: boolean
}
// rule
export type ruleContent = string[]
// bookingRule
export interface bookingRuleRule {
  cycle: number
  releaseTime: string
  stopTime: string
  quitDay: number
  quitTime: string
  rule: ruleContent
}
// concent
export interface concent {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  route: string
  status: number
  bookingRule: bookingRuleRule
}
// contentList
export type concentList = concent[]
// hospital
export type hospitalList = general & {
  data: {
    content: concentList
    pageable: {
      sort: {
        sorted: boolean
        unsorted: boolean
        empty: boolean
      }
      pageNumber: number
      pageSize: number
      offset: number
      paged: boolean
      unpaged: boolean
    }
    totalPages: number
    totalElements: number
    last: boolean
    first: boolean
    sort: {
      sorted: boolean
      unsorted: boolean
      empty: boolean
    }
    numberOfElements: number
    size: number
    number: number
    empty: boolean
  }
}

export type hos = hospitalList

export interface distLv {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: object
  parentId: number
  name: string
  value: string
  dictCode: string
  hasChildren: boolean
}

export type distLvList = distLv[]

export interface distLvType extends general {
  data: distLvList
}
// 根据名字获取医院详情
export interface hosByName extends general {
  data: concentList
}
